﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using VideoCache.Server.Model;
using VideoCache.Server.BLL;

namespace VideoCache.Server.MVCWeb.Areas.Member.Models
{
    public class NetbarModel
    {
        [Display(Name = "网吧编号")]
        public int Id { get; set; }

        [Display(Name = "网吧名称")]
        [Required(ErrorMessage = "请输入网吧名称。")]
        public string Name { get; set; }

        [Display(Name = "认证密码")]
        [Required(ErrorMessage = "请设置一个认证密码。")]
        [DataType(DataType.Password)]
        [StringLength(20, MinimumLength = 6, ErrorMessage = "认证密码必须为6-20位字符之间。")]
        public string Password { get; set; }

        [Display(Name = "所在省份")]
        [Required(ErrorMessage = "请选择所在省份。")]
        public string Province { get; set; }

        [Display(Name = "所在省份")]
        [Required(ErrorMessage = "请选择所在省份。")]
        public string City { get; set; }

        [Display(Name = "详细地址")]
        [Required(ErrorMessage = "请填写详细地址。")]
        public string Address { get; set; }

        [Display(Name = "联系人")]
        public string ContactPerson { get; set; }

        [Display(Name = "联系电话")]
        public string Telephone { get; set; }

        [Display(Name = "手机号码")]
        public string Mobile { get; set; }

        [Display(Name = "机器数量")]
        public int ComputerNumber { get; set; }
    }

    public enum NetbarStatus
    {
        [Description("禁用")]
        Disable = 0,

        [Description("正常")]
        Normal = 1,
    }
}